package com.group3.pojo.receive;

import com.group3.controller.Validated.Add;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 * @ClassName GroupScoreRece
 * @Author jt-sinlio
 * @Time 2021/7/5 16:58
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GroupScoreReceive {

    @ApiModelProperty(value = "小组id", required = true)
    private Integer groupId;

    @NotEmpty(groups = Add.class)
    @ApiModelProperty(value = "项目名称", required = true)
    private String lessonName;

    @Min(0)
    @ApiModelProperty(value = "得分", required = true)
    private Float score;

    @NotEmpty(groups = Add.class)
    @ApiModelProperty(value = "教师评语", required = true)
    private String comment;
}
